prevents emulated accesses to this page, which would not be handled in
the correct way (VMX handles accesses to that page in non-root mode in
a very super-special way).
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
if ( apic_va == NULL )
return -ENOMEM;
share_xen_page_with_guest(virt_to_page(apic_va), d, XENSHARE_writable);
- guest_physmap_add_page(
- d, paddr_to_pfn(APIC_DEFAULT_PHYS_BASE), virt_to_mfn(apic_va));
+ set_mmio_p2m_entry(
+ d, paddr_to_pfn(APIC_DEFAULT_PHYS_BASE), _mfn(virt_to_mfn(apic_va)));
d->arch.hvm_domain.vmx_apic_access_mfn = virt_to_mfn(apic_va);
return 0;